export default {
  currentTabIdx: (state) => {
    const { currentTab, tabList } = state;
    const currentTabIdx = tabList.findIndex(
      (item) => item.name === currentTab.name
    );
    return currentTabIdx > 0 ? currentTabIdx : 0;
  },
};
